/**
 * Created by Administrator on 2018/5/10.
 */
$(function(){
    document.title="个人中心";
    $.ajax({
        url:"/d/doctor/getDoctorInfo",
        type:"post",
        dataType:"json",
        data:"",
        success:function (result) {
            var doctorInfo = "";
            doctorInfo +="<h3 class='weui-media-box__title'>"+result.data.doctorname+" <span > <img  src='/mod-page/images/renzheng.png' alt='' width='24px' style='vertical-align: middle'></span></h3>"+
                "<p class='weui-media-box__desc' style='font-size: 11px;'>"+result.data.sex;
            if(result.data.age!=null && result.data.age != 0){
                doctorInfo +="/"+result.data.age+"岁";
            }
            doctorInfo +="</p>";

            if(result.data.medicalInstitution!=null){
                doctorInfo +="<p class='weui-media-box__desc' style='font-size: 11px;'>"+result.data.medicalInstitution.medicalname+"</p>"+
                    "<span class='link-array link-array-right'></span>";
            }
            $("#doctorInfo").html(doctorInfo);
        },error:function () {
            alert("ajax出错");
        }
    });
});
